﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ReservaWCF.Dominio;

namespace ReservaWCF
{
 
    [ServiceContract]
    public interface IRVReserva
    { 

        [FaultContract(typeof(ValidationException))]
        [OperationContract]
        Reserva GrabarReserva(Reserva reserva);

        [FaultContract(typeof(ValidationException))]
        [OperationContract]
        List<Reserva> ListarReserva(DateTime pDatFecIni, DateTime pDatFecFin, String pStrEstado, String pStrCodigo);

        [FaultContract(typeof(ValidationException))]
        [OperationContract]
        Reserva BuscarReserva(int pIntIdResera);

        [FaultContract(typeof(ValidationException))]
        [OperationContract]
        void EmitirReserva(int pIntIdReserva);
    }
}
